import Vue from 'vue'
import App from './App.vue'
import router from './router'
import store from './store'
import ElementUI from 'element-ui';
import 'element-ui/lib/theme-chalk/index.css';
import './assets/global.css'
import request from "@/utils/request";

Vue.config.productionTip = false

Vue.use(ElementUI, {size:"mini"});

import VueNativeSock from 'vue-native-websocket/src/Main';

Vue.use(VueNativeSock, 'ws://134.175.105.200:9090/gps', { //替换为自己的
  reconnection: true, // 是否自动重新连接
  reconnectionAttempts: 10, // 重新连接尝试的次数
  reconnectionDelay: 2000, // 重新连接的延迟时间（毫秒）
});


Vue.prototype.request=request
// request全局配置
new Vue({
  router,
  store,
  render: h => h(App)
}).$mount('#app')
